/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package clientprogram;

/**
 *
 * @author ASUS
 */
public class User {
    private String username;
    private String password;
    private String userId;
    private int minRemain;
    
    private static User instance = null;
    public static User Instance(){
        if (instance == null){
            instance = new User();
        }
        return instance;
    }
    public boolean Recharge(int _sotien)
    {
        
        return true;
    }
    
    public int ChangePass(String _oldPass, String _newPass)
    {
        
        return -1;
    }
    
    public boolean CheckLogin(String _username, String _pass){
        username = _username;
        password = _pass;
        
        return true;
    }
    
    public boolean Logout()
    {
        
        return true;
    }
}
